package top.zsyle.org.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import top.zsyle.basic.domain.BaseDomain;
import top.zsyle.system.domain.Role;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Employee extends BaseDomain {
    private String username;
    private String phone;
    private String email;
    private String salt;
    private String password;
    private Integer age;
    @NotNull(message = "状态不能为空")
    private Integer state;
    private Long departmentId;
    private Long logininfoId;
    private Long shopId;

    //所在部门
    private Department department;
    //所在门店
    private Shop shop;
    //角色id集和
    private List<Long> roles;

    //角色对象集和
//    private List<Role> roleList;

}
